import os
import network
import urequests
import json


class BliBliApi:
    #{"code":0,"message":"0","ttl":1,"data":{"mid":6336621,"following":284,"whisper":0,"black":3,"follower":49}}
    @staticmethod
    def req_b_user_info(vmid):
        rtn = urequests.get('http://api.bilibili.com/x/relation/stat?vmid='+str(vmid))
        rtn = rtn.json()
        print(rtn)
        print(rtn["data"]["follower"])


if __name__ == '__main__':

    #req_b_user_info(6336621)
    BliBliApi.req_b_user_info(250858633)